package com.yyfax.pay.third.model.to.yyfax;

import com.yyfax.pay.order.model.po.NotifyTaskPO;

/**
 * 异步通知绑定关系
 * 
 * @author buyi
 * @date 2018-05-25 17:26:55
 * @since v2.1.5
 */
public class NotifyDataBinder extends DataBinder {

	/**
	 * 发送成功标识，true-表示成功，false-表示失败
	 */
	private boolean sendSuccess;

	private NotifyTaskPO task;

	public boolean isSendSuccess() {
		return sendSuccess;
	}

	public void setSendSuccess(boolean sendSuccess) {
		this.sendSuccess = sendSuccess;
	}

	public NotifyTaskPO getTask() {
		return task;
	}

	public void setTask(NotifyTaskPO task) {
		this.task = task;
	}

	public void success() {
		this.sendSuccess = true;
	}

	public void fail() {
		this.sendSuccess = false;
	}

}
